package com.example.bootdemo.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.bootdemo.entity.MyUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


/**
 * @author yy
 * @createTime 2022/8/1
 */
@Mapper
public interface UserDao   extends BaseMapper<MyUser> {



    /**
     *  根据用户名查询用户
     * @param userName
     * @return
     */
    @Select("select * from my_user t where t.user_name = #{userName}")
    MyUser getUser(String userName);


}
